package com.atguigu.common.exception;

import com.atguigu.common.utils.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @title: TransactionalRollbackException
 * @Author syh
 * @Date: 2022/6/21 10:11
 * @Version 1.0
 */

@Slf4j
@Component
public class TransactionalRollbackException extends Exception {

    public R  transactionalRollbackException(){
        return R.error(BizCodeEnume.UNKNOW_EXCEPTION.getCode(),BizCodeEnume.UNKNOW_EXCEPTION.getMsg());
    }
}
